package zoschina.app.ivan.starweather.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * Created by Ivan on 2015/8/24.
 */
public class WeatherInfo implements Serializable {
    public WeatherInfo() {
        Date now = new Date();
        date = new SimpleDateFormat("yyyy年M月d日", Locale.CHINA).format(now);
        time = new SimpleDateFormat("h:m", Locale.CHINA).format(now);
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public String getDate() {
        return date;
    }

    public Weather getToday() {
        return today;
    }

    public void setToday(Weather today) {
        this.today = today;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    private City city;
    private String date;
    private String time;
    private Weather today;
}
